package com.hotel.comm.service;

import com.hotel.comm.bean.EnumConstants.Reverse;
import com.hotel.comm.lucene.condition.SearchSort;

import java.util.ArrayList;
import java.util.List;

public class BaseSearchServiceImpl extends BaseServiceImpl {
    /**
     * 获取默认职位信息搜索的排序条件
     *
     * @return
     */
    protected SearchSort[] getDefaultPositionSorts() {
        List<SearchSort> searchSorts = new ArrayList<SearchSort>();
        searchSorts.add(new SearchSort("isTop", String.class, Reverse.DESC));
        return (SearchSort[]) searchSorts.toArray(new SearchSort[searchSorts.size()]);
    }

    /**
     * 获取默认个人信息搜索的排序条件
     *
     * @return
     */
    protected SearchSort[] getDefaultPersonSorts() {
        return null;
    }
}
